<div class="column threehalf fl">
    <div class="box themed_box">
    		<h2 class="box-header-new"></h2>
    		<h2 class="box-header"><?php echo $title; ?></h2>
    			
    			<div class="box-content box-table">
    			
                <?php echo $this->session->flashdata('message2'); ?>
                
    			<table class="tablebox">
    				<thead class="table-header">
    					<tr>
    						<th><?php echo $this->lang->line('sector'); ?></th>
    						<th><?php echo $this->lang->line('status'); ?></th>
    						<th class="tc"></th>
    					</tr>
    				</thead>
    				
    				<tbody class="openable-tbody">
                        <?php $i=1; ?>
    					<?php foreach($table['activity'] as $rec): ?>
                        <?php if($i % 2 == 0): 
                                $zebra="odd";
                              else: 
                                $zebra="even";
                              endif;
                        ?>
                        <tr class="<?php echo $zebra;?>">
    						<td class="width80">
    							<h5><?php echo $this->lang->line('week').' '.$rec['week'].', In '.$rec['month_name'].' '.$rec['year']; ?></h5>
    		
    						</td>
    						<td class="tc">
    
    							<span class="bullet bullet-green"></span>
    						</td>
    						<td class="tc">
    						<a class="button themed openable"><span class="icon_single extend"></span></a>
    						</td>
    					</tr>
                        
    					<tr class="odd openable-tr">
    						<?php echo form_open($this->config->item('sect_update')); ?>
                            <td colspan="4">
    							<table class="tablebox">
		<thead class="table-header">
		<tr>
		    <th><?php echo $this->lang->line('date'); ?></th>
			<th><?php echo $this->lang->line('type');?></th>
			<th><?php echo $this->lang->line('contact');?></th>
			<th><?php echo $this->lang->line('desc');?></th>

			<!--<th>size</th>
			<th class="tc">actions</th>-->
		</tr>
		</thead>
		<tbody>
        <?php
            $i=1; 
            foreach($table['activity_all'] as $row): ?>
            <?php if($i % 2 == 0): 
                                $zebra="odd";
                              else: 
                                $zebra="even";
                              endif;
            ?>
            <?php if(($rec['week']==$row['week']) && ($rec['year']==$row['year']) ): ?>
			<tr class="<?php echo $zebra;?>">
				<td class=" first tc"><?php echo $row['activity_date']; ?></td>

				<td class="tc"><?php echo $row['activity_type']; ?></td>
				<td><?php echo $row['activity_contact']; ?></td>
				<td><?php echo $row['activity_desc']; ?></td>
				<!--<td>875 KB</td>
				<td>
				<a class="button white" href="#"><span class="icon_single cancel"></span></a>
				<a class="button white" href="#"><span class="icon_single edit"></span></a>

				</td>-->
			</tr>
          <?php endif;?>  
        <?php $i++;endforeach;?>    	
		</tbody>
		</table>
		<!--<ul class="pagination">
		<li><a class="button white" href="#">previous</a></li>

		<li><a class="button white" href="#">1</a></li>
		<li><a class="button white" href="#">2</a></li>
		<li><a class="button white active" href="#">3</a></li>
		<li><a class="button white" href="#">4</a></li>
		<li><a class="button white" href="#">5</a></li>
		<li><a class="button white" href="#">6</a></li>

		<li><a class="button white" href="#">next</a></li>
		</ul>-->
    						<?php //echo form_close();?>
    						<div class="clear"></div>
    						</td>
    					</tr>
                        <?php $i++; endforeach;?>
    					
                        
    				</tbody>
    			</table>
                <!--
    				<ul class="pagination">
    				<li><a class="button white" href="#">previous</a></li>
    
    				<li><a class="button white" href="#">1</a></li>
    				<li><a class="button white" href="#">2</a></li>
    				<li><a class="button white active" href="#">3</a></li>
    				<li><a class="button white" href="#">4</a></li>
    				<li><a class="button white" href="#">5</a></li>
    				<li><a class="button white" href="#">6</a></li>
    
    				<li><a class="button white" href="#">next</a></li>
    				</ul>
                  -->  
    			</div>
    		</div>
  </div>
  
  <!-- half -->
	<div class="column onehalf fr">
	
		<div class="box themed_box">
			<h2 class="box-header-new"></h2>

			<h2 class="box-header">	box table - gallery</h2>
			<div class="box-content box-table">
			dsdfs
			</div>
		</div>
	
	<div class="clear"></div>
	</div>	          